﻿<div class="col-md-3">
    <form name="loginForm" novalidate data-ng-submit="checkLogin(loginForm.$valid)">
        <h1>用户登录</h1>
        <div class="form-group">
            <label for="exampleInputEmail1">用户名</label>
            <input type="text" name="username" class="form-control" placeholder="用户名" data-ng-model="username" required>
            <span class="" data-ng-show="loginForm.username.$dirty && !loginForm.username.$valid">请输入用户名</span>
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">密码</label>
            <input type="password" name="password" class="form-control" placeholder="密码" data-ng-model="password" required>
            <span class="" data-ng-show="loginForm.password.$dirty && !loginForm.password.$valid">请输入密码</span>
        </div>
        <button type="submit" class="btn btn-default">登录</button>
    </form>
</div>

